package com.igbeok.miscellaneous.cglib.person.proxy;

import com.igbeok.miscellaneous.cglib.person.Hello;
import com.igbeok.miscellaneous.cglib.person.Rico;

public class RicoProxy extends CglibProxy {

	@Override
	public void before() {
		System.out.println("Hi");
	}

	@Override
	public void after() {
		System.out.println("Rico");
	}

	public static void main(String[] args) {
		RicoProxy proxy = new RicoProxy();
		Hello person = proxy.getProxy(Rico.class);
		person.sayHello("新年好");
	}
}
